<template>
儿子组件
  <button @click="m">儿子的按钮</button>
</template>

<script setup>

import {ref} from "vue";

const emits = defineEmits(['fun']);
const m  = ()=>{
  emits('fun',date)
}

const data=ref('儿子的礼物')
</script>

<style scoped>

</style>